package net.zrnecko.bowlingnumbers.session;

import net.zrnecko.bowlingnumbers.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("gameSetHome")
public class GameSetHome extends EntityHome<GameSet> {

	public void setGameSetId(Long id) {
		setId(id);
	}

	public Long getGameSetId() {
		return (Long) getId();
	}

	@Override
	protected GameSet createInstance() {
		GameSet gameSet = new GameSet();
		return gameSet;
	}

	public void wire() {
	}

	public boolean isWired() {
		return true;
	}

	public GameSet getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
